package com.ssmTest.dao;

import com.ssmTest.model.EmploymentAd;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface IEmploymentAdDao {
    EmploymentAd selectEmploymentAd(int id);
    void insertEmploymentAd(EmploymentAd employmentAd);
    List<EmploymentAd> EmploymentAdList(int toexamine);
    void updateInformation(@Param("id")int id,@Param("fail_reasion")String fail_reasion);
    void updateEmploymentAd(EmploymentAd employmentAd);

    //关键字查询
    List<EmploymentAd> selectSecondByAndKey(@Param("start")int start, @Param("end")int end, @Param("city")String city, @Param("key")String key);

    List<EmploymentAd> selectSecondByNoKey(@Param("start")int start,@Param("end")int end,@Param("city")String city);
    void delEmployment(int id);
    List<EmploymentAd> selectByPersionalId(int personal_id);

}
